//
//  PKMainTabbarController.swift
//  GoAbroad
//
//  Created by Pink Snow on 2025/5/28.
//

import UIKit

class PKMainTabbarController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let firstVC = PKHomeViewController()
           let secondVC = PKMineViewController()
           
           // 可选：包装在 UINavigationController 中
           let firstNav = UINavigationController(rootViewController: firstVC)
           let secondNav = UINavigationController(rootViewController: secondVC)
           
           firstNav.tabBarItem = UITabBarItem(title: "Home", image: UIImage(systemName: "house"), tag: 0)
           secondNav.tabBarItem = UITabBarItem(title: "Profile", image: UIImage(systemName: "person.circle"), tag: 1)
           
           viewControllers = [firstNav, secondNav]
        // Do any additional setup after loading the view.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
